#ifndef CDOORCONTROLBOARDIMPL_H_
#define CDOORCONTROLBOARDIMPL_H_

#include "IDoorControlBoard.h"

namespace zl {
namespace zlbase {

/// \brief 开门板接口类
class CDoorControlBoardImpl : public IDoorControlBoard
{
public:
    CDoorControlBoardImpl();
    ~CDoorControlBoardImpl();

    std::string Version() override;

    inline int32_t Connect() override 
    { return transport_->Connect(); }

    int32_t Disconnect() override
    { return transport_->Disconnect(); }

    int32_t OpenLocker(int32_t index) override
    { return transport_->OpenLocker(col_, index); }

    int32_t GetDoorStatus(unsigned char* status, size_t& len) override
    { return transport_->GetDoorStatus(col_, status, len); }

    int32_t GetItemStatus(unsigned char* status, size_t& len) override
    { return transport_->GetItemStatus(col_, status, len); }
};

}
}

#endif // CDOORCONTROLBOARDIMPL_H_
